<style scoped>

</style>

<template>
  <div class="_word-log-con">
    <Table :columns="columns" :data="tableData"></Table>
  </div>
</template>

<script>
  export default {
    name: "WordLog",
    data() {
      return {
        // 表格列配置
        columns: [
          {
            title: '日志编号',
            key: 'id',
            width: 100,
            align: 'center'
          },
          {
            title: '模块名',
            key: 'topic',
            align: 'center'
          },
          {
            title: '功能名',
            key: 'word',
            align: 'center',
          },
          {
            title: '原因',
            key: 'reason',
            align: 'center',
            className: 'table-namespace-col'
          },
          {
            title: '时间',
            key: 'createdDate',
            align: 'center'
          },
          {
            title: '操作',
            width: 200,
            align: 'center',
            render: (h, params) => {
              return h('div', [
                h('Button', {
                  props: {
                    type: 'text',
                    size: 'small'
                  },
                  on: {
                    click: () => {
                      this.updateModule(params.row)
                    }
                  }
                }, '查看')
              ]);
            }
          }
        ],
        tableData: []
      }
    }
  }
</script>
